#include "header.h"

int readArray(int array1[1024][1024])
{
	//declaring local variables
	FILE* array;	//Create file streams
	int i,j;	//for indexing the for loop

	//Start of instructions
	array=fopen("array1.txt","r");	//fopen that "reads only"
	for(i=0;i<1000;i++)		//for loop that reads in the column of the array
		for(j=0;j<1000;j++)	//for loop that reads in the rows of the array
		{
			fscanf(array,"%d",&array1[i][j]);
			quick_multi_thread2[i][j] = array1[i][j];
			quick_multi_thread4[i][j] = array1[i][j];
			quick_multi_thread8[i][j] = array1[i][j];
		}

	fclose(array);	//close file streams
	return i;	//if i==1000 that means 1000*1000 loops successfully executed
}
